package com.yellow.trackingservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("delivery_statuses")
public class DeliveryStatus {

    @TableId(value = "status_id", type = IdType.AUTO)
    private Integer statusId;

    @TableField("tracking_id")
    private Integer trackingId;

    @TableField("current_status")
    private String currentStatus;

    @TableField("timestamp")
    private LocalDateTime timestamp;

    @TableField("details")
    private String details;
}
